//
//  MyLinkList.h
//  oc_algorithm
//
//  Created by zp on 2021/1/27.
//

#import <Foundation/Foundation.h>
#import "ListNode.h"

NS_ASSUME_NONNULL_BEGIN

@interface SingleLinkList : NSObject

@property (nonatomic, strong)ListNode *head;

-(int)size;
-(void)insertNodes:(NSArray *)array atIndexes:(NSIndexSet *)indexes;
-(void)insertItem:(int)value atIndex:(int)index;
-(void)addItemAtHead:(int)value;
-(void)addItemAtTail:(int)value;
-(void)deleteItemAtIndex:(int)index;
-(int)getItemAtIndex:(int)index;

@end

NS_ASSUME_NONNULL_END
